package com.itheima.controller;


import com.itheima.domain.entity.Info;

import com.itheima.domain.vo.InfoVO;
import com.itheima.service.impl.RecommendServiceImpl;
import com.itheima.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = "岗位推荐相关的接口")
@RequestMapping("/recommend")
@Slf4j
public class RecommendController {
    @Autowired
    private RecommendServiceImpl recommendService;

    /**
     * 推荐职位
     * @return
     */
    @GetMapping("")
    @ApiOperation("推荐岗位")
    public Result<List<InfoVO>> recommend() {
        List<InfoVO> recommend = recommendService.recommend();
        return Result.success(recommend);
    }

}
